package com.qf.cosmetology.controller;

import com.qf.cosmetology.result.ResponseData;
import com.qf.cosmetology.service.SysUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SysUser)表控制层
 *
 * @author makejava
 * @since 2021-07-01 11:20:01
 */
@RestController
@RequestMapping("sysUser")
public class SysUserController {

    /**
     * 服务对象
     */
    @Resource
    private SysUserService sysUserService;

    @ApiOperation(value = "getPicCount",notes = "获取用户总数")
    @GetMapping("/count")
    public ResponseData getUserCount(){
        return sysUserService.getCount();
    }

}
